<!-- #gallery -->
<article id="gallery">
    <div class="container">
		<h1 class="title-primary">Image Gallery</h1>
    </div>
    
    <?php if( !empty($list_image_gallery) ): ?>
    
        <div class="container">
            <div class="row">
    			<div class="col-md-12">
                    
                    <!-- Image Gallery List -->
    				<ul class="gallery-list clearfix" id="image_gallery"></ul>
                    
                    <!-- Show More Gallery -->
                    <div class="show-more more-images">
                        <!--
    					<div class="show-more-inner text-center has-arrow-bottom">
    						<div class="loading-wrap"><div class="loading"></div></div>
    						<a href="<?php echo base_url('gallery/imagedata'); ?>" id="image_showmore" class="btn-showmore btn btn-primary btn-sm">Show more...</a>
    					</div>
                        -->
    				</div>
                    <!-- End Show More Gallery -->
                    
    			</div>
    		</div>
        </div>
        
    <?php else: ?>
       
       <div class="container">
            <div class="row">
    			<div class="col-md-12">
    				<div class="show-more">
                        <div class="show-more-inner text-center">
                            <a class="btn-showmore btn btn-primary btn-sm disabled" href="#">No Image Gallery</a>
                        </div>
                    </div>
    			</div>
    		</div>
        </div>
        
    <?php endif ?>
    

    <!-- .footer-panel -->
	<footer class="footer-panel has-arrow has-slide">
		<div class="container">
        
            <?php if( !empty($list_video_gallery) ): ?>
        
    			<div class="row">
    				<div class="col-sm-10">
    					<h1>Video Gallery</h1>
    				</div>
    				<div class="col-sm-2">
    					<div class="control-nav text-right control-slider pull-right">
    						<a class="featured-video-prev btn-prev" data-control=".featured-video"></a>
    						<a class="featured-video-next btn-next" data-control=".featured-video"></a>
    					</div>
    				</div>
    			</div>
    			<div class="row">
    				<div class="col-md-12">
    					<!-- .featured-video-wrap -->
    					<div class="featured-video-wrap">
                            <div class="featured-video clearfix">
    							<ul class="slides">
                                <?php foreach($list_video_gallery as $row): ?>
                                    <li>
    									<div class="thumbnail">
    										<div class="border-transparent">
    											<div class="overlay-hover">
    												<div class="overlay-content">
    													<a href="<?php echo base_url('gallery/video/' . $row->id); ?>" id="<?php echo $row->id; ?>" class="glyphicon icon-video video_details"></a>
    												</div>
    											</div>
    										</div>
                                            <?php if( !empty($row->thumb) ): ?>
                                                <img src="<?php echo base_url($row->thumb); ?>" />
                                            <?php else: ?>
                                                <img src="content/media/gallery/video/thumb/novideo.jpg" />
                                            <?php endif ?>
    									</div>
    								</li>
                                <?php endforeach ?>
                                </ul>
                            </div>  
    					</div>
    					<!-- /.featured-video-wrap -->
                        
                        <!-- .featured-video-details -->
                        <div id="video_details"></div>
                        <!-- /.featured-video-details -->
    				</div>
    			</div>
            
            <?php else: ?>
                        
                <div class="row">
    				<div class="col-md-12">
    					<div class="show-more" style="margin-bottom: 30px;">
                            <div class="show-more-inner text-center">
                                <a class="btn-showmore btn btn-primary btn-sm disabled" href="#">No Video Gallery</a>
                            </div>
                        </div>
    				</div>
    			</div>
                        
            <?php endif ?>
            
		</div>
	</footer>
	<!-- .footer-panel -->
    
</article>
<!-- /#gallery -->